/**
 * 文件管理接口测试用例入口
 *
 * Created by snowingsea on 2020/02/23.
 */
const fs = require('fs-extra');
const config = require('./../../api-config');

module.exports = describe('Test File Manager', function () {
  before(function (done) {
    fs.ensureDir(config.path.cacheDir)
      .then(() => {
        done();
      })
      .catch(done);
  });
  after(function (done) {
    fs.remove(config.path.cacheDir)
      .then(() => {
        done();
      })
      .catch(done);
  });

  require('./add-file.test');
  require('./analyse-files.test');
  require('./delete-file.test');
  require('./edit-file.test');
  require('./get-file.test');
  require('./get-file-children.test');
  require('./get-file-tree.test');
  require('./get-file-types.test');
  require('./get-file-globals.test');
  require('./get-file-literals.test');
  require('./update-files.test');
  require('./overview-file-list.test');
});
